﻿/*===================================================
* 类名称: ILRStaticMethod
* 类描述:
* 创建人: oream
* 创建时间: 2017/12/25 0:18:38
* 修改人: 
* 修改时间:
* 版本： @version 1.0
=====================================================*/


using ILRuntime.CLR.Method;
using ILRuntime.CLR.TypeSystem;
using ILRuntime.Runtime.Enviorment;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    public class ILRStaticMethod : IStaticMetod
    {

        private readonly IMethod method;

        public ILRStaticMethod(IType type,string method)
        {
            this.method = type.GetMethod(method, 0);
        }

        public override void Run()
        {
            Init.Instance?.AppDomain?.Invoke(method, null, null);
        }

        public override void Run(object value)
        {

        }
    }
}
